package adminText;

import com.bookShop.dao.impl.ManagerDaoImpl;
import com.bookShop.dao.impl.MemberDaoImpl;
import com.bookShop.entity.Manager;
import com.bookShop.entity.Member;

public class ManagerCheck {
	public static void main(String[] args) {
		Manager m = new Manager();
		m.setName("1");
		m.setPassword("admin");
		System.out.println(new ManagerDaoImpl().check(m)); 
		
		Member mb = new Member();
		MemberDaoImpl mbi = new MemberDaoImpl();
		mb.setName("11");
		mb.setPassword("11");
		int id = mbi.check(mb);
		System.out.println(id);
		System.out.println((mbi.selectById(id)).getName());
		
		
	}
}
